<!DOCTYPE html>
<html lang="zh-CN">
  <head>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  <meta name="referrer" content="never">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta name="author" content="kveln">
  <title>thiswind</title>
  <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
  <!-- <link href="https://www.thiswind.work/media/css/bootstrap.min.css" rel="stylesheet"> -->
  <!--  <link href="https://www.thiswind.work/media/css/all.min.css" rel="stylesheet" type="text/css"> -->
  <link href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css" rel="stylesheet">
  <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
  <link rel="alternate" type="application/rss+xml" title="thiswind » Feed" href="https://www.thiswind.work/atom.xml">
  <link rel="stylesheet"href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.15.10/build/styles/androidstudio.min.css">
  <link href="https://www.thiswind.work/styles/main.css" rel="stylesheet">
  <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.15.10/build/highlight.min.js"></script>
  <!-- <script src="https://www.thiswind.work/media/scripts/jquery.min.js"></script> -->
  <script>hljs.initHighlightingOnLoad();</script>
  
  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-152960855-1"></script>
  <script>window.dataLayer = window.dataLayer || [];
    function gtag() {
      dataLayer.push(arguments)
    }
    gtag('js', new Date());
    gtag('config', 'UA-152960855-1');</script>
  

  </head>
  <body>
     <nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
    <div class="container">
      <a class="navbar-brand" href="https://www.thiswind.work">thiswind</a>
      <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
        Menu
        <i class="fas fa-bars"></i>
      </button>
      <div class="collapse navbar-collapse" id="navbarResponsive">
        <ul class="navbar-nav ml-auto">
          
          <li class="nav-item">
              
              <a class="nav-link" href="/">首页</a>
              
          </li>
          
          <li class="nav-item">
              
              <a class="nav-link" href="/archives">归档</a>
              
          </li>
          
          <li class="nav-item">
              
              <a class="nav-link" href="/tags">标签</a>
              
          </li>
          
          <li class="nav-item">
              
              <a class="nav-link" href="/post/about">关于</a>
              
          </li>
          
        </ul>
      </div>
    </div>
  </nav>
  <header class="masthead" style="background-image: url('https://www.thiswind.work/media/images/home-bg.jpg')">
    <div class="overlay"></div>
    <div class="container">
      <div class="row">
        <div class="col-lg-8 col-md-10 mx-auto">
          <div class="site-heading">
            <h1>thiswind</h1>
            <span class="subheading">thiswind：笔记本</span>
          </div>
        </div>
      </div>
    </div>
  </header>
      <div class="container">
    <div class="row">
      <div class="col-lg-8 col-md-10 mx-auto">
       
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/markdown-duan-luo-nei-huan-xing/">
            <h2 class="post-title">
              Markdown段落内换行
            </h2>
            </a>
            <h3 class="post-subtitle">
              <p>在行尾添加两个空格，或者<code>&lt;br&gt;</code></p>

            </h3>
          <p class="post-meta">
             <span class="time">2020-03-22</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/git-hui-guo-qu-hui-wei-lai/">
            <h2 class="post-title">
              git 回过去，回未来
            </h2>
            </a>
            <h3 class="post-subtitle">
              <p>HEAD指向的版本就是当前版本，因此，Git允许我们在版本的历史之间穿梭，使用命令git reset --hard commit_id。<br>
穿梭前，用git log可以查看提交历史，以便确定要回退到哪个版本。<br>
要重返未来，用git reflog查看命令历史，以便确定要回到未来的哪个版本。</p>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-21</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/git-status-zhong-wen-luan-ma/">
            <h2 class="post-title">
              git status 中文乱码
            </h2>
            </a>
            <h3 class="post-subtitle">
              <p>通过将Git配置变量 core.quotepath 设置为false，就可以解决中文文件名称在这些Git命令输出中的显示问题，示例：</p>
<pre><code>$ git config --global core.quotepath false
</code></pre>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-20</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/markdown-xie-lun-wen-pandoc-bian-yi-sheng-cheng-docx/">
            <h2 class="post-title">
              Markdown写论文，Pandoc编译，生成Docx
            </h2>
            </a>
            <h3 class="post-subtitle">
              <h2 id="目录结构">目录结构</h2>
<pre><code class="language-bash">[ONE]&gt; tree -d
.
├── release
└── src
</code></pre>
<p>源代码放在 <code>src</code> 目录当中<br>
编译结果放在 <code>release</code> 目录当中</p>
<h2 id="前提条件">前提条件</h2>
<ul>
<li><code>src/chinese-gb7714-2005-numeric.csl</code> : <a href="/post/zotero-style-repository/">下载</a></li>
<li><code>src/my-reference.docx</code>   : 自己创建一个</li>
</ul>
<p>模板的创建方法：</p>
<ol>
<li>用一个空的 docx 文件作为模板，编译文本</li>
<li>在编译出来的文本当中，根据需要修改各种样式的字体、字号、段落等</li>
<li>将修改好的docx文件重命名为<code>my-reference.docx</code>，用作模板</li>
</ol>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-20</span>
             <span>,</span>
             <span class="post-stats">4 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/wo-kan-guo-huo-zhe-xiang-kan-que-mei-you-mai-dao-de-shu/">
            <h2 class="post-title">
              珊瑚岛上的死光
            </h2>
            </a>
            <h3 class="post-subtitle">
              <p>小学时候在放学路上开了一家书店，于是我开始自己买书看</p>
<p>有些看过了，有些没有看过</p>
<p>这些书塑造了我的世界观</p>
<figure data-type="image" tabindex="1"><img src="https://www.thiswind.work/post-images/1574226941606.jpg" alt="" loading="lazy"></figure>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-20</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/bash-input/">
            <h2 class="post-title">
              bash input
            </h2>
            </a>
            <h3 class="post-subtitle">
              <pre><code class="language-bash">[ONE]&gt; read name
aaaaa
[ONE]&gt; echo $name
aaaaa
[ONE]&gt; read age
9999
[ONE]&gt; echo $age
9999
[ONE]&gt; read i
3333
[ONE]&gt; echo $i
3333
[ONE]&gt; 
</code></pre>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-19</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/bilibili/">
            <h2 class="post-title">
              bilibili
            </h2>
            </a>
            <h3 class="post-subtitle">
              <figure data-type="image" tabindex="1"><img src="https://i1.hdslb.com/bfs/archive/8017fb113b50de46d39a6c4de544f2d73af57453.jpg_160x100.jpg" alt="" loading="lazy"></figure>
<ul>
<li><a href="https://space.bilibili.com/128710224">https://space.bilibili.com/128710224</a></li>
</ul>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-19</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/shellcheck/">
            <h2 class="post-title">
              shellcheck
            </h2>
            </a>
            <h3 class="post-subtitle">
              <pre><code class="language-bash">shellcheck some.sh
</code></pre>
<figure data-type="image" tabindex="1"><img src="https://github.com/koalaman/shellcheck/raw/master/doc/terminal.png" alt="" loading="lazy"></figure>
<ul>
<li>Site      <a href="https://www.shellcheck.net">https://www.shellcheck.net</a></li>
<li>Github    <a href="https://github.com/koalaman/shellcheck">https://github.com/koalaman/shellcheck</a></li>
</ul>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-19</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/bash-fail-then-continue-fail-then-exit/">
            <h2 class="post-title">
              bash fail then continue, fail then exit
            </h2>
            </a>
            <h3 class="post-subtitle">
              <p>fail then continue</p>
<pre><code class="language-bash"># process list of formulas that have been installed
while read i ;  do

    # Jump blank lines
    test -z &quot;$i&quot; &amp;&amp; continue

    echo &quot;Installing $i ...&quot;

    # attempt to install formula; if error write error, process next formula

    brew install &quot;$i&quot; || continue

done
</code></pre>
<p>fail then exit</p>
<pre><code class="language-bash">some_command || exit
</code></pre>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-19</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        <div class="post-preview">
          <a href="https://www.thiswind.work/post/shell-loop/">
            <h2 class="post-title">
              shell loop
            </h2>
            </a>
            <h3 class="post-subtitle">
              <pre><code class="language-bash">printf &quot;letters: &quot;
for i in &quot;a&quot; &quot;b&quot; &quot;c&quot;; do
    printf &quot;%s,&quot; &quot;$i&quot;
done
printf &quot;\n&quot;
</code></pre>

            </h3>
          <p class="post-meta">
             <span class="time">2019-11-19</span>
             <span>,</span>
             <span class="post-stats">1 min read</span>
            </p>
        </div>
        <hr>
        <div class="clearfix">
        </div>
        
        
        
        <a class="btn btn-primary float-right" href="https://www.thiswind.work/page/2">下一页 &rarr;</a>
        
      </div>
    </div>
  </div>

  
    <!-- Footer -->
  <footer>
    <div class="container">
      <div class="row">
        <div class="col-lg-8 col-md-10 mx-auto">
          <ul class="list-inline text-center">
            
            
              
            
              
            
              
            
              
            
              
            
              
            
              
              <li class="list-inline-item">
              <a href="https://www.thiswind.work/atom.xml" target="_blank">
                <span class="fa-stack fa-lg">
                  <i class="fas fa-circle fa-stack-2x"></i>
                  <i class="fas fa-rss fa-stack-1x fa-inverse"></i>
                </span>
              </a>
              </li>
          </ul>
          <p class="copyright text-muted">Copyright &copy;<span>thiswind</span><br><a href="https://github.com/getgridea/gridea" class="Themeinfo">Powered by Gridea</a></p>
        </div>
      </div>
    </div>
   </footer>
  <!-- Bootstrap core JavaScript -->
  <script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
  <!-- <script src="https://www.thiswind.work/media/scripts/bootstrap.bundle.min.js"></script> -->
  <!-- Bootstrap core JavaScript -->
  <script src="https://cdn.jsdelivr.net/gh/Alanrk/clean-cdn@1.0/scripts/clean-blog.min.js"></script>
  <!-- <script src="https://www.thiswind.work/media/scripts/clean-blog.min.js"></script> -->
  <script src="//instant.page/3.0.0" type="module" defer integrity="sha384-OeDn4XE77tdHo8pGtE1apMPmAipjoxUQ++eeJa6EtJCfHlvijigWiJpD7VDPWXV1"></script>
  <style type="text/css">a.back_to_top{text-decoration:none;position:fixed;bottom:40px;right:30px;background:#f0f0f0;height:40px;width:40px;border-radius:50%;line-height:36px;font-size:18px;text-align:center;transition-duration:.5s;transition-propety:background-color;display:none}a.back_to_top span{color:#888}a.back_to_top:hover{cursor:pointer;background:#dfdfdf}a.back_to_top:hover span{color:#555}@media print,screen and(max-width:580px){.back_to_top{display:none!important}}</style>
<a id="back_to_top" href="#" class="back_to_top">
  <span>▲</span></a>
<script>$(document).ready((function(_this) {
    return function() {
      var bt;
      bt = $('#back_to_top');
      if ($(document).width() > 480) {
        $(window).scroll(function() {
          var st;
          st = $(window).scrollTop();
          if (st > 30) {
            return bt.css('display', 'block')
          } else {
            return bt.css('display', 'none')
          }
        });
        return bt.click(function() {
          $('body,html').animate({
            scrollTop: 0
          },
          800);
          return false
        })
      }
    }
  })(this));</script>
  </body>
</html>
